package com.nine.shop.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.nine.shop.model.Cart;
import com.nine.shop.model.Goods;
import com.nine.shop.model.Image;
import com.nine.shop.model.Order;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * @author hty
 * Create on 2019/8/17
 */
@Mapper
@Component
public interface GoodsMapper extends BaseMapper<Goods> {

    Goods findById(@Param("id") Integer id);

    IPage<Goods> findGoodsPage(IPage<Goods> page);

    IPage<Goods> findByTypeIdPage(IPage<Goods> page, @Param("typeId") Integer typeId);
    //List<Goods> findListByUserId(Integer userId);
}
